﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public partial class OrdenVentaItem
    {
        public void AddSet(dbGestionDataContext _db,
                    int	idOrdenVenta,
                    int	idUI,
                    int idMoneda,
                    decimal	total,
                    bool bitFinanciado)
    {
                    this.idOrdenVenta = idOrdenVenta;
                    this.idMoneda = idMoneda;
                    this.idUI = idUI;
                    this.total = total;
                    this.bitFinanciado = bitFinanciado;
                    

                    _db.OrdenVentaItems.InsertOnSubmit(this);
        }
                    public void UpdateSet(int idMoneda,
                    int idUI,
                    decimal total,
                    bool bitFinanciado
                    )
        {
           
                    this.idMoneda = idMoneda;
                    this.idUI = idUI;
                    this.total = total;
                    this.bitFinanciado = bitFinanciado;

                  

        }
    }
}
